package com.shop.shopserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.shoppojo.entity.UserOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 订单Mapper
 */

@Mapper
public interface OrderMapper extends BaseMapper<UserOrder> {
    /**
     * 订单发货
     */
    @Update("update user_order set order_status = 3 where order_status = 2")
    void orderDelivery();
}
